# -*- coding:utf-8 -*-
from django.conf.urls import url
from views import LoginView, LogoutView, BeatView, ElevatorRegistryView, ElevatorONLIneView, ElevatorCollectorView, \
    ElevatorCollectorOnlineRateView, ElevatorStatusView, ElevatorFaultView, ElevatorEventView, ElevatorStatisticsView, \
    FaultQueryListView, StatusMsgQueryListView, ElevatorFaultDealView
urlpatterns = [
    # url(r"^login.json$", LoginView.as_view(), name="login"),
    # url(r"^logout.json$", LogoutView.as_view(), name="logout"),
    # url(r"^api/platform/beat.json$", BeatView.as_view(), name="beat"),
    # url(r"^odev/eleregister.json$", ElevatorRegistryView.as_view(), name="beat"),
    # url(r"^odev/eno.json$", ElevatorONLIneView.as_view(), name="online"),
    # url(r"^odev/odo.json$", ElevatorCollectorView.as_view(), name="collector"),
    # url(r"^odev/dor.json$", ElevatorCollectorOnlineRateView.as_view(), name="collect-rate"),
    # url(r"^es.json$", ElevatorStatusView.as_view(), name="elevator-status"),
    # url(r"^ef.json$", ElevatorFaultView.as_view(), name="elevator-fault"),
    # url(r"^efd.json$", ElevatorFaultDealView.as_view(), name="elevator-fault-deal"),
    # url(r"^odev/ee.json$", ElevatorEventView.as_view(), name="elevator-event"),
    # url(r"^odev/est.json$", ElevatorStatisticsView.as_view(), name="statistics"),
    # # url(r"^odev/ea.json$", ElevatorWarningView.as_view(), name="elevator_warning"),
    # # 电梯故障查询
    # url(r"^fault/$", FaultQueryListView.as_view(), name="elevator_fault"),
    # # 电梯运行状态查询
    # url(r"^status/$", StatusMsgQueryListView.as_view(), name="elevator_status"),

    url(r"^api/platform/login.json$", LoginView.as_view(), name="login"),
    url(r"^api/platform/logout.json$", LogoutView.as_view(), name="logout"),
    url(r"^api/platform/beat.json$", BeatView.as_view(), name="beat"),
    url(r"^api/platform/odev/eleregister.json$", ElevatorRegistryView.as_view(), name="beat"),
    url(r"^api/platform/odev/eno.json$", ElevatorONLIneView.as_view(), name="online"),
    url(r"^api/platform/odev/odo.json$", ElevatorCollectorView.as_view(), name="collector"),
    url(r"^api/platform/odev/dor.json$", ElevatorCollectorOnlineRateView.as_view(), name="collect-rate"),
    url(r"^api/platform/odev/es.json$", ElevatorStatusView.as_view(), name="elevator-status"),
    url(r"^api/platform/odev/ef.json$", ElevatorFaultView.as_view(), name="elevator-fault"),
    url(r"^efd.json$", ElevatorFaultDealView.as_view(), name="elevator-fault-deal"),
    url(r"^api/platform/odev/ee.json$", ElevatorEventView.as_view(), name="elevator-event"),
    url(r"^api/platform/odev/est.json$", ElevatorStatisticsView.as_view(), name="statistics"),
    # url(r"^odev/ea.json$", ElevatorWarningView.as_view(), name="elevator_warning"),
    # 电梯故障查询
    url(r"^fault/$", FaultQueryListView.as_view(), name="elevator_fault"),
    # 电梯运行状态查询
    url(r"^status/$", StatusMsgQueryListView.as_view(), name="elevator_status"),
]
